package com.kma.ncpractice2013.model;

import java.util.*;

public class PromoCodeType
{
    private int id;
    private short discount;
    private Date startDate;
    private Date expirationDate;
    private HashSet<PromoCode> relatedPromoCodes;

    public PromoCodeType()
    {

    }

    public PromoCodeType(int id, short discount, Date startDate, Date expirationDate, HashSet<PromoCode> relatedPromoCodes)
    {
        this.id = id;
        this.discount = discount;
        this.startDate = startDate;
        this.expirationDate = expirationDate;
        this.relatedPromoCodes = relatedPromoCodes;
    }

    public void setExpirationDate(Date expirationDate) {
        this.expirationDate = expirationDate;
    }

    public void setRelatedPromoCodes(HashSet<PromoCode> relatedPromoCodes) {
        this.relatedPromoCodes = relatedPromoCodes;
    }

    public short getDiscount() {
        return discount;
    }

    public Date getExpirationDate() {
        return expirationDate;
    }

    public HashSet<PromoCode> getRelatedPromoCodes() {
        return relatedPromoCodes;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setDiscount(short discount) {
        this.discount = discount;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }
}
